package com.iplant.ams.service.basicenum.ipt;


import com.iplant.base.po.enums.BaseEnum;

/**
 * @author YouWang·Peng
 * 2023-7-14 09:23:25
 */
public enum IPTModelTypes implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),

    /**
     * 日常
     */
    General(1, "日常"),
    /**
     * 专业
     */
    Professional(2, "专业");

    private int value;
    private String label;
    private String remark = "";

    IPTModelTypes(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static IPTModelTypes getEnumType(int val) {
        for (IPTModelTypes type : IPTModelTypes.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return null;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
